package com.springdoor.common.core.domain.entity;

import com.springdoor.common.annotation.Excel;
import com.springdoor.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;

/**
 * 商品品牌对象 sprd_goods_brand
 * 
 * @author llshs
 * @date 2024-04-30
 */
public class SprdGoodsBrand extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 品牌id */
    private Long brandId;

    /** 父品牌id */
    private Long parentId;

    /** 品牌编码 */
    @Excel(name = "品牌编码")
    private String brandCode;

    /** 品牌名称 */
    @Excel(name = "品牌名称")
    private String brandName;

    /** 品牌链接 */
    @Excel(name = "品牌链接")
    private String brandUrl;

    /** 品牌描述 */
    @Excel(name = "品牌描述")
    private String brandDesc;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    private List<SprdGoodsBrand> children = new ArrayList<>();

    public void setBrandId(Long brandId) 
    {
        this.brandId = brandId;
    }

    public Long getBrandId() 
    {
        return brandId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public void setBrandCode(String brandCode)
    {
        this.brandCode = brandCode;
    }

    public String getBrandCode() 
    {
        return brandCode;
    }
    public void setBrandName(String brandName) 
    {
        this.brandName = brandName;
    }

    public String getBrandName() 
    {
        return brandName;
    }
    public void setBrandUrl(String brandUrl) 
    {
        this.brandUrl = brandUrl;
    }

    public String getBrandUrl() 
    {
        return brandUrl;
    }
    public void setBrandDesc(String brandDesc) 
    {
        this.brandDesc = brandDesc;
    }

    public String getBrandDesc() 
    {
        return brandDesc;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public List<SprdGoodsBrand> getChildren() {
        return children;
    }

    public void setChildren(List<SprdGoodsBrand> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("brandId", getBrandId())
            .append("parentId", getParentId())
            .append("brandCode", getBrandCode())
            .append("brandName", getBrandName())
            .append("brandUrl", getBrandUrl())
            .append("brandDesc", getBrandDesc())
            .append("delFlag", getDelFlag())
            .append("remark", getRemark())
            .toString();
    }
}
